using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace sales.forms
{
    public partial class voucherCashFind : application.voucherFind
    {
        public voucherCashFind()
        {
            try
            {
                InitializeComponent();
                this.myFullMode = false;
                voucherCriteriaCASH.EnableVoucherType(false);
            }
            catch (Exception er)
            {
                this.ShowError(er);
            }
        }
        public override string myVoucherType
        {
            get { return voucherCriteriaCASH.queryVoucherType; }
            set
            {
                base.myVoucherType = value;
                voucherCriteriaCASH.queryVoucherType = value;
            }
        }
        protected override void LoadData()
        {
            myApplicationDS.Clear();
            DataAccess.DataLibs.VoucherOptions option = new DataAccess.DataLibs.VoucherOptions();
            voucherCriteriaCASH.GetOptions(option);
            DataAccess.DataLibs.LoadVoucherCASH(myApplicationDS.Voucher, option);
            this.ShowReccount(myApplicationDS.Voucher.Count);
        }
    }
}

